<template>
  <layout>
    <template v-slot:header="{ style }">
      <nut-navbar :left-show="true"  title="首页" :style="style"> </nut-navbar>
    </template>
    <view class="flex">
      <nut-icon name="dongdong"></nut-icon>
      <nut-button type="primary" @click="onLogin">登陆</nut-button>
    </view>
    <view>测试</view>
  </layout>

</template>

<script lang="ts" setup>
// import { computed } from 'vue'
import { wechatLogin } from '@/hooks/useLogin'
console.log("首页")
const onLogin = ()=>{
  return wechatLogin();
}
</script>

<style lang="scss">

</style>
